/**
 * 消息管理
 */
import { getAction, deleteAction, putAction, postAction, httpAction, downFile } from '@/api/manage'
const serviceName = '/sjsk-system'
//新增自定义消息
const sysMessageAdd = params => postAction(`/sjsk-system/sys/message/sysMessage/add`,params)
//编辑消息
const sysMessageEdit = params => putAction(`/sjsk-system/sys/message/sysMessage/edit`,params)
//编辑模板消息
const sysMessageTemplateEdit = params => putAction(`/sjsk-system/sys/message/sysMessageTemplate/edit`,params)
//删除自定义消息
const sysMessageDelete = params => deleteAction(`/sjsk-system/sys/message/sysMessage/delete`,params)

//新增模板
const sysMessageTemplateAdd = params => postAction(`/sjsk-system/sys/message/sysMessageTemplate/add`,params)

/*
我的消息
 */
//获取我的消息列表
const MyInform = params => getAction('/sjsk-system/sys/sysAnnouncementSend/getMyAnnouncementSend',params)
//一键已读
const readAll = (params) => putAction(`/sjsk-system/sys/sysAnnouncementSend/readAll`,params)
//人员列表
const getUserAll = params => postAction(`/sjsk-system/sys/message/sysMessage/getUserAll`,params)



export {
  sysMessageAdd,
  sysMessageEdit,
  sysMessageDelete,
  sysMessageTemplateAdd,
  MyInform,
  readAll,
  getUserAll,
  sysMessageTemplateEdit
}



